package org.example.rubbish.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Time;
import java.util.Date;

@Data

@NoArgsConstructor
public class DeviceControl {
    private Long id;
    private Long stationId;
    private Time lightOnTime;
    private Time lightOffTime;
    private Integer doorCloseDelay;
    private Date createTime;
    private Date updateTime;
    private Long operator;

    public DeviceControl(Long id, Long stationId, Time lightOnTime, Time lightOffTime, Integer doorCloseDelay, Date createTime, Date updateTime, Long operator) {
        this.id = id;
        this.stationId = stationId;
        this.lightOnTime = lightOnTime;
        this.lightOffTime = lightOffTime;
        this.doorCloseDelay = doorCloseDelay;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.operator = operator;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getStationId() {
        return stationId;
    }

    public void setStationId(Long stationId) {
        this.stationId = stationId;
    }

    public Time getLightOnTime() {
        return lightOnTime;
    }

    public void setLightOnTime(Time lightOnTime) {
        this.lightOnTime = lightOnTime;
    }

    public Time getLightOffTime() {
        return lightOffTime;
    }

    public void setLightOffTime(Time lightOffTime) {
        this.lightOffTime = lightOffTime;
    }

    public Integer getDoorCloseDelay() {
        return doorCloseDelay;
    }

    public void setDoorCloseDelay(Integer doorCloseDelay) {
        this.doorCloseDelay = doorCloseDelay;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getOperator() {
        return operator;
    }

    public void setOperator(Long operator) {
        this.operator = operator;
    }
}